const comment = {
  state: {
    hidden: false,
    commenInfo: {}
  },
  mutations: {
    SET_HIDDEN: (state, hidden) => {
      state.hidden = hidden;
    },
    SET_COMMENT_INFO: (state, commenInfo) => {
      state.commenInfo = commenInfo;
    }
  },
  actions: {
    SetHidden({ commit }, hidden) {
      commit("SET_HIDDEN", hidden);
    },
    SetCommenInfo({ commit }, commenInfo) {
      commit("SET_COMMENT_INFO", commenInfo);
    }
  }
};

export default comment;
